#include "Light.h"


Light::Light(GLint texture_id, GLUquadricObj *newP):Shape(texture_id)
{
	this->x = -20;
	this->y = 2;
	this->z = 0;
	this->newP = newP;
}

void Light::Draw()
{
	glPushMatrix();
	 glColor3f(1,0,0);
	 glTranslatef(this->x,this->y+23,this->z);
	//glRotatef(90,1,0,0);
	 glRotatef(this->Anglecord.angle, this->Anglecord.xAngle,this->Anglecord.yAngle,this->Anglecord.zAngle);
	 gluSphere(newP, 500, 20,20);

	 glColor3f(1, 0, 0);
	 glutPostRedisplay();
	glPopMatrix();

}


Light::~Light(void)
{
}
